﻿//-----------------------------------------------------------------------
// <copyright file="NoticeFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.InformationModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public static class NoticeFactory
    {
        public static Notice CreateNotice(
                                string title,
                                string titleColor,
                                string content,
                                string link,
                                InformationIdentifier.NoticeType type,
                                int sort,
                                bool isCanShow,
                                int rank,
                                DateTime refreshTime,
                                DateTime editTime,
                                string editUser)
        {
            Notice notice = new Notice();
            notice.Content = content;
            notice.EditTime = editTime;
            notice.EditUser = editUser;
            notice.IsCanShow = isCanShow;
            notice.Link = link;
            notice.Rank = rank;
            notice.RefreshTime = refreshTime;
            notice.Sort = sort;
            notice.Title = title;
            notice.TitleColor = titleColor;
            notice.Type = type;
            notice.CreateTime = DateTime.Now;

            return notice;
        }
    }
}
